package com.xingxue.shopping.model.persist;

public class address {

	
			 private Integer addressid;
			 private String  address;
			 private Integer userid;
			 private Integer type;
			public Integer getAddressid() {
				return addressid;
			}
			public void setAddressid(Integer addressid) {
				this.addressid = addressid;
			}
			public String getAddress() {
				return address;
			}
			public void setAddress(String address) {
				this.address = address;
			}
			public Integer getUserid() {
				return userid;
			}
			public void setUserid(Integer userid) {
				this.userid = userid;
			}
			public Integer getType() {
				return type;
			}
			public void setType(Integer type) {
				this.type = type;
			}
			@Override
			public int hashCode() {
				final int prime = 31;
				int result = 1;
				result = prime * result + ((address == null) ? 0 : address.hashCode());
				result = prime * result + ((addressid == null) ? 0 : addressid.hashCode());
				result = prime * result + ((type == null) ? 0 : type.hashCode());
				result = prime * result + ((userid == null) ? 0 : userid.hashCode());
				return result;
			}
			@Override
			public boolean equals(Object obj) {
				if (this == obj)
					return true;
				if (obj == null)
					return false;
				if (getClass() != obj.getClass())
					return false;
				address other = (address) obj;
				if (address == null) {
					if (other.address != null)
						return false;
				} else if (!address.equals(other.address))
					return false;
				if (addressid == null) {
					if (other.addressid != null)
						return false;
				} else if (!addressid.equals(other.addressid))
					return false;
				if (type == null) {
					if (other.type != null)
						return false;
				} else if (!type.equals(other.type))
					return false;
				if (userid == null) {
					if (other.userid != null)
						return false;
				} else if (!userid.equals(other.userid))
					return false;
				return true;
			}
			@Override
			public String toString() {
				return "address [addressid=" + addressid + ", address=" + address + ", userid=" + userid + ", type="
						+ type + "]";
			}
			 
			 
			 
			


	
}
